<!DOCTYPE html>
<html   xmlns="http://www.w3c.org/1999/xhtml"
        xmlns:h="http://java.sun.com/jsf/html"
        xmlns:p="http://primefaces.org/ui"
        xmlns:f="http://xmlns.jcp.org/jsf/core">
    <h:head/>
    <h:body>
        <p:notificationBar widgetVar="nv" effect="slide" position="bottom">
            //Content
        </p:notificationBar>
        <h:outputLink value="#" onclick="PF('nv').show()">Show</h:outputLink>
        <h:outputLink value="#" onclick="PF('nv').hide()">Hide</h:outputLink>
    </h:body>
</html>
